package com.woke.utils;
/**  
 * @类功能说明：
 * @公司名称：南京华讯方舟通讯设备有限公司  
 * @作者：zhoujinbing  
 * @创建时间：2018年7月10日 上午上午10:28:13 
 * @版本：V1.0  
 */
public class Cache {
	private String key;//缓存ID   
    private Object value;//缓存数据   
    private long timeOut;//更新时间   
    private boolean expired; //是否终止   
    public Cache() {   
            super();   
    }   

    public Cache(String key, Object value, long timeOut, boolean expired) {   
            this.key = key;   
            this.value = value;   
            this.timeOut = timeOut;   
            this.expired = expired;   
    }   

    public String getKey() {   
            return key;   
    }   

    public long getTimeOut() {   
            return timeOut;   
    }   

    public Object getValue() {   
            return value;   
    }   

    public void setKey(String string) {   
            key = string;   
    }   

    public void setTimeOut(long l) {   
            timeOut = l;   
    }   

    public void setValue(Object object) {   
            value = object;   
    }   

    public boolean isExpired() {   
            return expired;   
    }   

    public void setExpired(boolean b) {   
            expired = b;   
    }
}
